<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
    <title>测试 | 用户登录</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript" src="http://cdn.staticfile.org/jquery/2.0.3/jquery.min.js"></script>
    <script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
    <script type="text/javascript" src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/aes.js"></script>
</head>
<body>
<form id="form" action="/sign/signin" method="post">
    邮箱：<input id="email" type="text" name="email" value="569141948@qq.com"/><br/>
    密码：<input id="password" type="text" name="password" value="111"/><br/>
   <!--  <input id="ciphertext" type="hidden" name="ciphertext" /><br/> -->
    <input id="sub" type="button" value="登 录" />
</form>
</body>
<script type="text/javascript">
$(function() {
	$("#sub").click(function() {
		//var username = $("#username").val();
		//var password = $("#password").val();
		var pwdmd5 = CryptoJS.MD5(password);
		$("#password").val(pwdmd5);
		//var md5str = pwdmd5.toString();
		//var ciphertext = CryptoJS.AES.encrypt(account, md5str);
		//$("#ciphertext").val(ciphertext);
		$("#form").submit();
	});
});
</script>
</html>
